package studio.raptor.dispatcher.scheduler.config;

/**
 * @author jack
 * @since 1.0
 */
public class TaskConfig {

  private String name;

  private String code;

  private Integer weight;

  private Integer type;

  private Integer kindId;

  private String eventName;

  private boolean sort;

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getCode() {
    return code;
  }

  public void setCode(String code) {
    this.code = code;
  }

  public Integer getWeight() {
    return weight;
  }

  public void setWeight(Integer weight) {
    this.weight = weight;
  }

  public Integer getType() {
    return type;
  }

  public void setType(Integer type) {
    this.type = type;
  }

  public Integer getKindId() {
    return kindId;
  }

  public void setKindId(Integer kindId) {
    this.kindId = kindId;
  }

  public boolean isSort() {
    return sort;
  }

  public void setSort(boolean sort) {
    this.sort = sort;
  }

  public String getEventName() {
    return eventName;
  }

  public void setEventName(String eventName) {
    this.eventName = eventName;
  }

  @Override
  public String toString() {
    return "TaskConfig{" +
        "name='" + name + '\'' +
        ", code='" + code + '\'' +
        ", weight=" + weight +
        ", type=" + type +
        ", kindId=" + kindId +
        ", eventName='" + eventName + '\'' +
        ", sort=" + sort +
        '}';
  }
}
